.PHONY: all
all:
	@cd Compiler_Server;\
	make;\
	cd -;\
	cd OjServer;\
	make;\
	cd -;

.PHONY:output
output:
	@mkdir -p output/compile_server;\
	mkdir -p output/oj_server;\
	cp -rf Compiler_Server/compile_server output/compile_server;\
	cp -rf Compiler_Server/temp output/compile_server;\

	cp -rf OjServer/conf output/oj_server/;\
	cp -rf OjServer/lib output/oj_server/;\
	cp -rf OjServer/questions output/oj_server/;\
	cp -rf OjServer/template output/oj_server/;\
	cp -rf OjServer/wwwroot output/oj_server/;\
	cp -rf OjServer/oj_server output/oj_server/;

.PHONY:clean
clean:
	@cd Compiler_Server;\
	make clean;\
	cd -;\
	cd OjServer;\
	make clean;\
	cd -;
